package com.hxzy.utils;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author wzm
 * @create 2023-10-11 11:43
 * project_name:stu_sys
 */
//将要全部读取的属性抽取到实体中
//只要类的属性和配置文件中的key一致可以使用注解一次性读取所有的数据到属性中
@Data
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
public class AliyunOssConfigBean {
    private String endpoint;//区域节点
    private String accessKeyId ;//id
    private String accessKeySecret;//Secret
    private String bucketName;//bucket
    //200
}
